package com.example.b_308.myapplication.view.page;

import android.content.Context;
import android.support.v4.view.ViewPager;
import android.util.AttributeSet;
import android.view.MotionEvent;

/**
 * Created by B-305 on 2017/11/21.
 */
public class WorkViewPage extends ViewPager{
     boolean isTouch=true;
    public WorkViewPage(Context context) {
        super(context);
    }

    public WorkViewPage(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    @Override
    public boolean onTouchEvent(MotionEvent ev) {
        if(!isTouch){
            return false;
        }
        return super.onTouchEvent(ev);
    }
}
